{% extends 'ViettransFrontBundle::layout.html.twig' %}

{% block body %}
<div class="grid_24">
	<div id="announcement_preview" class="panel_no_bordered">
		<div class="header">Xác nhận</div>
		<table>
			<tr>
				<td class="label">Loại tin</td>
				<td>{{announcement.typeName}}</td>
			</tr>
			<tr>
				<td class="label">Danh mục</td>
				<td>{{announcement.categoryName}}</td>
			</tr>
			<tr>
				<td class="label">Thành phố</td>
				<td>{{announcement.locality}}</td>
			</tr>
			<tr>
				<td class="label">Tên liên hệ</td>
				<td>{{announcement.contactName}}</td>
			</tr>
			<tr>
				<td class="label">Email liên hệ</td>
				<td>{{announcement.contactEmail}}</td>
			</tr>
			<tr>
				<td class="label">Điện thoại liên hệ</td>
				<td>{{announcement.contactTelephone}}</td>
			</tr>
			<tr>
				<td class="label">Tiêu đề</td>
				<td>{{announcement.title}}</td>
			</tr>
			<tr>
				<td class="label">Nội dung tin</td>
				<td><pre>{{announcement.description}}</pre></td>
			</tr>
			<tr>
				<td class="label">Giá</td>
				<td>{{announcement.price|default('-')}} €</td>
			</tr>
			<tr>
				<td class="label">Ảnh</td>
				<td><img src="data:image/jpg;base64,{{announcement.photo}}" /></td>
			</tr>
			<tr>
				<td colspan="2" align="center">
					<form action="{{path('announcement_preview')}}" method="post">
						<p>
							<input type="hidden" name="action" value="confirm" />
							<button class="button save" type="submit">Xác nhận</button>
						</p>
					</form>
				</td>
			</tr>
		</table>
	</div>
</div>
{% endblock %}